﻿@inject FwProject.Shop.Views.WebRootUrl WebRootUrl
@using FwProject.Com.Dto
@model FeedbackOutputDto
@{
}
@section styles{
    <link href="~/Content/Viewer/viewer.min.css" rel="stylesheet" />
}
<style>
    .layui-upload-img {
        width: 100%;
        height: auto;
    }

    .upload-img {
        position: relative;
        width: 100px;
        float: left;
        margin: 5px;
    }

    .layui-upload-list {
        margin: 5px;
        float: left;
    }
</style>
<div class="layui-form layui-form-pane" style="padding:10px;">
    <div class="layui-form-item">
        <label class="layui-form-label">反馈类型</label>
        <span class="layui-form-mid layui-word-aux">@Model.QuestionType</span>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员名称</label>
        <span class="layui-form-mid layui-word-aux">@Model.UserName</span>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <span class="layui-form-mid layui-word-aux">@Model.Phone</span>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">问题描述</label>
        <span class="layui-form-mid layui-word-aux">@Model.Description</span>
    </div>
    <div class="layui-form-item  layui-form-text">
        <label class="layui-form-label">反馈图片</label>
        <div class="layui-input-block">
            <blockquote class="layui-elem-quote layui-quote-nm" style="overflow:hidden;margin-bottom:100px;">
                @foreach (var item in Model.ImgaList)
                {
                    <div class="layui-upload-list" style="overflow:hidden;">
                        <div class="upload-img">
                            <img src="@(WebRootUrl.WebImageRootUrl()+"/"+item)" alt="@item" class="layui-upload-img">
                        </div>
                    </div>
                }
            </blockquote>
        </div>
    </div>

    <div class="layui-layer-btn layui-layer-btn-" style="padding:8px 12px;z-index:1000;position: fixed;bottom:0;left: 1px;width: 98%;height: 50px; background:rgba(230,230,230,0.8)">
        <a id="save" class="layui-layer-btn0" lay-submit="" lay-filter="saveprops">确定</a>
    </div>
</div>


@section scripts{
    <script src="~/Content/Viewer/viewer.min.js"></script>
    <script type="text/javascript">
        var form, layer, layedit, upload;
        layui.use(['form', 'layedit', 'layer'], function () {
            layedit = layui.layedit;
            form = layui.form;
            layer = layui.layer;

        })



        $('#save').on('click', function () {
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭当前iframe页面
        });

        $(document).ready(function () {
            $('.layui-elem-quote').viewer();
        });
    </script>
}

